package com.example.spzx.Mapper;

import com.example.spzx.model.dto.system.SysRoleDto;
import com.example.spzx.model.entity.system.SysRole;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysRoleMapper{
    Page<SysRole> selectlist(String roleName);

    void add(SysRole sysRole);

    void update(SysRole sysRole);

    void delete(Integer id);
@Select("select * from sys_role")
    List<SysRole> selectall();
}
